/* eslint-disable jsdoc/require-param */
'use strict';

/**
 * 评论
 */
function initComment(router, controller) {
  router.post('/api/comment/add', controller.themeComment.add);
  router.get('/api/comment/query/:id', controller.themeComment.query);
  router.delete('/api/comment/delete', controller.themeComment.delete);
  router.post('/api/comment/like', controller.themeCommentLike.like);
  router.delete('/api/comment/dislike', controller.themeCommentLike.dislike);
  router.post('/api/comment/reply', controller.themeCommentReply.reply);
  router.delete('/api/comment/deleteReply', controller.themeCommentReply.deleteReply);
}

module.exports = initComment;
